package com.blb.ishop.util;

import com.blb.ishop.entity.User;
import com.blb.ishop.service.UserService;

public class ServiceTest {

    public static void main(String[] args) {
        UserService userService = (UserService) ApplicationContextUtil.getBean(UserService.class);
        System.out.println(userService.getClass());
        User user = new User(1L,"admin","123");
        userService.addUser(user);
        userService.deleteUser(1L);
        userService.login(user);
        userService.selectUser();
        userService.updateUser(user);
    }
}
